const TokenKey = "mercadolibre_u_info"

export function getToken() {
    const result = localStorage.getItem(TokenKey)
    return result && JSON.parse(result)
}

export function setToken(token) {
    return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
    return localStorage.removeItem(TokenKey)
}
